package com.glory.brepda.entity;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;

public class PickingEntity {
    private Long OBJECTRRN;
    private String STEPNAME;
    private String STEPDESC;
    private String PARTDESC;
    private String PARTNAME;
    private String EQPLOCATION;
    private String LOTID;
    private String MATERIALTYPE;
    private String MATERIALSPEC;
    private String EQPID;
    private String LOCATION;
    private String MAINQTY;
    // 领料单状态
    private String STATUS;
    private String RESERVED2;
    // 领料单备注
    private String RESERVED3;
    // 工单BOMLINE 物料指定的厂商（显示用，卡控有另外的逻辑）
    private String RESERVED5;
    // 领料单已经发料了的数量
    private String RESERVED6;
    private ArrayList<String> MATERIALTYPELIST;
    private ArrayList<Aduref> ADUREFLIST;
    private ArrayList<String> MATERIALSPECLIST;
    private ArrayList<PickingEntity> APPOINTMENTTOOLLIST;

    public ArrayList<Aduref> getADUREFLIST() {
        if (ADUREFLIST == null) {
            return new ArrayList<>();
        }
        return ADUREFLIST;
    }

    public void setADUREFLIST(ArrayList<Aduref> ADUREFLIST) {
        this.ADUREFLIST = ADUREFLIST;
    }

    public Long getOBJECTRRN() {
        return OBJECTRRN == null ? 0L : OBJECTRRN;
    }

    public void setOBJECTRRN(Long OBJECTRRN) {
        this.OBJECTRRN = OBJECTRRN;
    }

    public String getSTEPDESC() {
        return STEPDESC == null ? "" : STEPDESC;
    }

    public void setSTEPDESC(String STEPDESC) {
        this.STEPDESC = STEPDESC;
    }

    public String getPARTDESC() {
        return PARTDESC == null ? "" : PARTDESC;
    }

    public void setPARTDESC(String PARTDESC) {
        this.PARTDESC = PARTDESC;
    }

    public String getLOTID() {
        return LOTID == null ? "" : LOTID;
    }

    public void setLOTID(String LOTID) {
        this.LOTID = LOTID;
    }

    public String getMATERIALTYPE() {
        return MATERIALTYPE == null ? "" : MATERIALTYPE;
    }

    public void setMATERIALTYPE(String MATERIALTYPE) {
        this.MATERIALTYPE = MATERIALTYPE;
    }

    public String getMATERIALSPEC() {
        return MATERIALSPEC == null ? "" : MATERIALSPEC;
    }

    public void setMATERIALSPEC(String MATERIALSPEC) {
        this.MATERIALSPEC = MATERIALSPEC;
    }

    public String getEQPID() {
        return EQPID == null ? "" : EQPID;
    }

    public void setEQPID(String EQPID) {
        this.EQPID = EQPID;
    }

    public String getLOCATION() {
        return LOCATION == null ? "" : LOCATION;
    }

    public void setLOCATION(String LOCATION) {
        this.LOCATION = LOCATION;
    }

    public String getMAINQTY() {
        return MAINQTY == null ? "" : MAINQTY;
    }

    public void setMAINQTY(String MAINQTY) {
        this.MAINQTY = MAINQTY;
    }

    public String getSTATUS() {
        return EQPID == null ? StringUtils.EMPTY : STATUS;
    }

    public void setSTATUS(String STATUS) {
        this.STATUS = STATUS;
    }

    public String getRESERVED2() {
        return RESERVED2 == null ? "" : RESERVED2;
    }

    public void setRESERVED2(String RESERVED2) {
        this.RESERVED2 = RESERVED2;
    }

    public String getRESERVED5() {
        return RESERVED5 == null ? StringUtils.EMPTY : RESERVED5;
    }

    public void setRESERVED5(String RESERVED5) {
        this.RESERVED5 = RESERVED5;
    }

    public String getRESERVED6() {
        return RESERVED6 == null ? StringUtils.EMPTY : RESERVED6;
    }

    public void setRESERVED6(String RESERVED6) {
        this.RESERVED6 = RESERVED6;
    }

    public ArrayList<String> getMATERIALSPECLIST() {
        if (MATERIALSPECLIST == null) {
            return new ArrayList<>();
        }
        return MATERIALSPECLIST;
    }

    public void setMATERIALSPECLIST(ArrayList<String> MATERIALSPECLIST) {
        this.MATERIALSPECLIST = MATERIALSPECLIST;
    }

    public ArrayList<String> getMATERIALTYPELIST() {
        if (MATERIALTYPELIST == null) {
            return new ArrayList<>();
        }
        return MATERIALTYPELIST;
    }

    public void setMATERIALTYPELIST(ArrayList<String> MATERIALTYPELIST) {
        this.MATERIALTYPELIST = MATERIALTYPELIST;
    }

    public String getEQPLOCATION() {
        return EQPLOCATION == null ? "" : EQPLOCATION;
    }

    public void setEQPLOCATION(String EQPLOCATION) {
        this.EQPLOCATION = EQPLOCATION;
    }

    public String getSTEPNAME() {
        return STEPNAME == null ? "" : STEPNAME;
    }

    public void setSTEPNAME(String STEPNAME) {
        this.STEPNAME = STEPNAME;
    }

    public String getPARTNAME() {
        return PARTNAME == null ? "" : PARTNAME;
    }

    public void setPARTNAME(String PARTNAME) {
        this.PARTNAME = PARTNAME;
    }

    public ArrayList<PickingEntity> getPickingEntityList() {
        if (APPOINTMENTTOOLLIST == null) {
            return new ArrayList<>();
        }
        return APPOINTMENTTOOLLIST;
    }

    public void setPickingEntityList(ArrayList<PickingEntity> APPOINTMENTTOOLLIST) {
        this.APPOINTMENTTOOLLIST = APPOINTMENTTOOLLIST;
    }

    public String getRESERVED3() {
        return RESERVED3;
    }

    public void setRESERVED3(String RESERVED3) {
        this.RESERVED3 = RESERVED3;
    }

    public class Aduref {
        private String KEYID;
        private String TEXT;

        public String getKEYID() {
            return KEYID == null ? "" : KEYID;
        }

        public void setKEYID(String KEYID) {
            this.KEYID = KEYID;
        }

        public String getTEXT() {
            return TEXT == null ? "" : TEXT;
        }

        public void setTEXT(String TEXT) {
            this.TEXT = TEXT;
        }
    }
}
